We were not dealing with the possibility of priv->entry being
NULL in all places.
priv->reveal_child = reveal_child;
- if (reveal_child)
- _gtk_entry_grab_focus (GTK_ENTRY (priv->entry), FALSE);
- else
- gtk_entry_set_text (GTK_ENTRY (priv->entry), "");
+ if (priv->entry)
+ {
+ if (reveal_child)
+ _gtk_entry_grab_focus (GTK_ENTRY (priv->entry), FALSE);
+ else
+ gtk_entry_set_text (GTK_ENTRY (priv->entry), "");
+ }
g_object_notify (G_OBJECT (bar), "search-mode-enabled");
}